import instance from "./require";

//获取
export let http_getshoplist=()=>{
    return instance.get('/shoplist1')
}
//获取
export let http_gettypelist=()=>{
    return instance.get('/typelist1')
}
//添加
export let http_addshoplist=(obj)=>{
    return instance.post('/shoplist1',obj)
}
//编辑
export let http_editshoplist=(obj)=>{
    return instance.patch(`/shoplist1/${obj.id}`,obj)
}
//删除
export let http_delshoplist=(id)=>{
    return instance.delete(`/shoplist1/${id}`)
}
//搜索
export let http_searchshoplist=(title)=>{
    return instance.get('/shoplist1',{params:{'name_like':title}})
}
